package com.songlanyun.modules.account.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.songlanyun.common.drive.RootEntity;
import com.songlanyun.common.enums.GoodsConstant;
import com.songlanyun.common.enums.MemberConstant;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 会员服务地区关系表
 *
 * @author wuchao
 * @email songlanyun@gmail.com
 * @date 2022-08-08 11:12:07
 */
@Data
@TableName("yxt_user_service_area")
public class UserServiceAreaEntity extends RootEntity<Long, UserServiceAreaEntity> implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     *
     */
    @TableId
    private Long id;
    /**
     * 会员ID
     */
    private Long userId;
    /**
     * 服务体系身份
     */
    @TableField(exist = false)
    private GoodsConstant.ServicePackageArea serviceSystemProvince;
    /**
     * 省名
     */
    private String provinceName;
    /**
     * 省编号
     */
    private String provinceCode;
    /**
     * 市名
     */
    private String cityName;
    /**
     * 市编号
     */
    private String cityCode;
    /**
     * 区名
     */
    private String areaName;
    /**
     * 区编号
     */
    private String areaCode;
    /**
     * 街道名
     */
    private String streetName;
    /**
     * 街道编号
     */
    private String streetCode;
    /**
     * 社区名
     */
    private String communityName;
    /**
     * 社区编号
     */
    private String communityCode;

    @Override
    public Long getIdentity() {
        return this.getId();
    }
}
